package com.ydkj.a37e_mall.Classes.Model.Request;


import android.util.Log;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by hong on 2016/4/6.
 */
public class CancelMallOrderReq extends BaseReq {

    private String uuid;
    private String returned_delivery;
    private String delivery_no;
    private String stats;
    private String secret;

    public String getReturned_delivery() {
        return returned_delivery;
    }

    public void setReturned_delivery(String returned_delivery) {
        this.returned_delivery = returned_delivery;
    }

    public String getDelivery_no() {
        return delivery_no;
    }

    public void setDelivery_no(String delivery_no) {
        this.delivery_no = delivery_no;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getStats() {
        return stats;
    }

    public void setStats(String stats) {
        this.stats = stats;
    }

    public String urlString() {
        return "order/update/";
    }

    public String getSecret() {
        String string = "uuid=" + uuid + (returned_delivery == "" ? "" : "&returned_delivery=" + returned_delivery) +
                (delivery_no == "" ? "" : "&delivery_no=" + delivery_no) + "&stats=" + stats;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
            Log.e("ssss", "取消订单source==" + string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }
}
